package com.cskaoyan.mapper.marketMapper;

import com.cskaoyan.bean.po.example.PromotionAdListExamplePO;
import com.cskaoyan.bean.marketBean.MarketAd;
import com.cskaoyan.bean.marketBean.MarketAdExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface MarketAdMapper {
    long countByExample(MarketAdExample example);

    int deleteByExample(MarketAdExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAd record);

    int insertSelective(MarketAd record);

    List<MarketAd> selectByExample(MarketAdExample example);

    MarketAd selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAd record, @Param("example") MarketAdExample example);

    int updateByExample(@Param("record") MarketAd record, @Param("example") MarketAdExample example);

    int updateByPrimaryKeySelective(MarketAd record);

    int updateByPrimaryKey(MarketAd record);

    List<MarketAd> selectMarketAdByPageLimit(@Param("adListExamplePO") PromotionAdListExamplePO adListExamplePO);

    int insertNewMarketAd(MarketAd ad);

    List<MarketAd> selectMarketAd();
}